#!/bin/sh

day=TZ=$(UTC-4 date +%y%m%d)
agency='xxxxxxxxxx'
apikey='xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
url='xxxxxxxxxxxxxx'
token='xxxxxxxxxxxxxx'
gameid='101'
lang='en-US'

StrKeyG="$day$agency$apikey"
echo "StrKeyG:$StrKeyG"
keyG=$(echo -n $StrKeyG | md5sum | cut -d ' ' -f1)
echo "keyG:$keyG"

StrKey="Token=$token&GameId=$gameid&Lang=$lang&AgentId=$agency$keyG"
echo "StrKey:$StrKey"
key=$(echo -n $StrKey | md5sum | cut -d ' ' -f1)
echo "key:$key"

req="$url/api/singleWallet/LoginWithoutRedirect?Token=$token&GameId=$gameid&Lang=$lang&AgentId=$agency&Key=******$key******"
echo $req

curl -X GET -H 'Content-Type: application/json' $req

